#include"address_list.h"
int main()
{
	int input = 0;
	AddressList date;
	InitaAddressList(&date); // 初始化

	do
	{
		menu();
		printf("input num> ");
		scanf("%d", &input);
		switch (input)
		{
		case Add:
			Add_AddressList_info(&date);
			break;
		case Del:
			Del_AddressList_info(&date);
			break;
		case Change:
			Change_Address_info(&date);
            break;
		case Search:
			Search_AddressList_info(&date);
			break;
		case Sort:
			Sort_AddressList_info(&date);
			break;
		case Display:
			Show_AddressList_info(&date);
			break;
		case Exit:
			printf("程序结束\n");
			break;
		default:
			printf("input error!!!\n");
			break;
		}
	} while (input);
	return 0;
}